#encoding=utf-8

name = "adA lovelace"

print(name.title())
print(name.upper())
print(name.lower())


first_name = "zuo"
last_name = "zhongfei"
full_name = first_name + " " + last_name
print(full_name)

print("\tptthon")

favorite_language = "python "
print(favorite_language)

# rstrip() 去掉首尾空格，但是这种去除空格是暂时的，后边再次输出变量，发现空格还在
print(favorite_language.rstrip())

print(favorite_language)

# 要永久去除首尾空格，需要将方法的返回值重新赋值给变量
favorite_language = favorite_language.rstrip()

print(favorite_language)

# 可以使用了strip() 和strip() 选择去除前边或者后边的空格

